<template>
	<view class="loading" v-show="isLoading">
		<image src="../../static/loading.gif"></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		},
		computed: {
			isLoading() {
				return this.$store.state.load
			}
		}
	}
</script>

<style lang="scss" scoped>
	.loading {
		position: absolute;
		margin: auto;
		left: 0;
		right: 0;
		left: 0;
		bottom: 0;
		width: 100upx;
		height: 100upx;
		background-color: #FFF;
		border-radius: 10upx;
		display: flex;
		justify-content: center;
		align-items: center;
		box-sizing: border-box;
		padding: 15upx;
		image {
			width: 100%;
			height: 100%;
		}
	}
</style>
